package cn.com.kblog.common;


/**
 * 全局常量
 * @author KK.Luo
 * Email luokai8@vip.qq.com
 * @date 2013-11-28下午6:00:42
 */
public class Constant {
	/** 全局处理参数 */
    public static final String PARAMS_KEY = "params";
    /** 单个model对象名称 */
    public static final String BEAN_KEY = "bean";
    /** 传送到页面中的Page对象 */
    public static final String BEANS_KEY = "beans";
    /** 页面中page对象名称 */
    public static final String PAGE_KEY = "page";
    
    /** 分页相关 */
    public static final String PAGE_NUM_KEY = "pageNum"; // 当前面号
    /** 默认页号 */
    public static final int PAGE_NUM_DEFAULT = 1;
    /** 默认页面大小 */
    public static final String PAGE_SIZE_KEY = "pageSize";// 每页显示记录数
    public static final int PAGE_SIZE_DEFAULT = 10;

    public static final String PAGE_ORDER_FIELD_KEY = "orderField"; // 排序字段名
    public static final String PAGE_ORDER_FIELD_DEFAULT = "id";// 默认排序字段名ID

    public static final String PAGE_ORDER_DIRECTION_KEY = "orderDirection";// 排序方向
    public static final String PAGE_ORDER_DIRECTION_DEFAULT = "desc";// 默认的排序方向
    /** 默认结果对象名称 */
    public static final String RESULT_KEY = "result";
    /** 验证对象名称 */
    public static final String EMAIL_VERIFY_KEY = "email_verify";
	/**验证码 */
	public static final  String EMAIL_VERIFY_CODE ="verify_code";
    
	/**加盐 */
	public static final String CRYPT_KEY = "QWERTYUI";
	
	/**加盐 */
	public static final String IMAGE_TYPE = ".jpg|.jepg|.gif|.png|.bmp";
	
	/**ToP标签最大值 */
	public static final Integer TAG_TOP_LIMIT = 15;
	
}
